package com.baoai.dto;

import com.baoai.common.ArrayQuery;
import com.baoai.common.IdName;
import com.baoai.common.StringWords;
import org.junit.Test;
import org.springframework.stereotype.Repository;

/**
 * 用于视频的dto
 * Created by xiaren on 2017/4/6.
 */
@Repository("video")
public class VideoDto extends BaseDto {

    private String className = "video";
    private String id;
    @IdName
    private String videoId; //视频id
    private String title;   // 视频标题
    private String srcJson; // 视频图片 eg、["http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg"]
    private String tutorName;   // 导师名字
    private String tutorImg;    // 导师图片
    private String tutorId; // 导师id
    private String styleType;   //1 大图样式 2小图样式
    private Long createDate;    // 当前时间的毫秒数
    @ArrayQuery(lengthName = "labelJson_Count")
    private String labelJson;   // 标签   eg、["婚姻","恋爱"]
    private String labelIdJson; // 标签id     eg、[1,2]
    private String time;   // 视频时间
    private String videoPath;   // 视频路径  eg、http://xy.baoai.com/attachment/video/ffkc/sk/2.mp4
    private String sex;   // 性别 0所有，1男，2女
    private String channelId;   // 频道id
    private String channelName; //频道名称
    private Integer commentNumber;  //评论数量
    private Long updateDate;    //修改时间
    private String recommend;  //推荐(0推荐、1不推荐）
    @StringWords
    private String state;  // 0草稿、1发布
    private Integer shareNumber;    //分享个数
    private Integer praiseNumber;   // 点赞个数
    private Integer collectNumber;  // 收藏个数
    private Integer pv; //播放量
    private String size;    //大小，MB

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    public Integer getPraiseNumber() {
        return praiseNumber;
    }

    public void setPraiseNumber(Integer praiseNumber) {
        this.praiseNumber = praiseNumber;
    }

    public Integer getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(Integer collectNumber) {
        this.collectNumber = collectNumber;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "VideoDto{" +
                "className='" + className + '\'' +
                ", id='" + id + '\'' +
                ", videoId='" + videoId + '\'' +
                ", title='" + title + '\'' +
                ", srcJson='" + srcJson + '\'' +
                ", tutorName='" + tutorName + '\'' +
                ", tutorImg='" + tutorImg + '\'' +
                ", tutorId='" + tutorId + '\'' +
                ", styleType='" + styleType + '\'' +
                ", createDate=" + createDate +
                ", labelJson='" + labelJson + '\'' +
                ", labelIdJson='" + labelIdJson + '\'' +
                ", time='" + time + '\'' +
                ", videoPath='" + videoPath + '\'' +
                ", sex='" + sex + '\'' +
                ", channelId='" + channelId + '\'' +
                ", channelName='" + channelName + '\'' +
                ", commentNumber=" + commentNumber +
                ", updateDate=" + updateDate +
                ", recommend='" + recommend + '\'' +
                ", state='" + state + '\'' +
                ", shareNumber=" + shareNumber +
                ", praiseNumber=" + praiseNumber +
                ", collectNumber=" + collectNumber +
                ", pv=" + pv +
                '}';
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSrcJson() {
        return srcJson;
    }

    public void setSrcJson(String srcJson) {
        this.srcJson = srcJson;
    }

    public String getTutorName() {
        return tutorName;
    }

    public void setTutorName(String tutorName) {
        this.tutorName = tutorName;
    }

    public String getTutorImg() {
        return tutorImg;
    }

    public void setTutorImg(String tutorImg) {
        this.tutorImg = tutorImg;
    }

    public String getTutorId() {
        return tutorId;
    }

    public void setTutorId(String tutorId) {
        this.tutorId = tutorId;
    }

    public String getStyleType() {
        return styleType;
    }

    public void setStyleType(String styleType) {
        this.styleType = styleType;
    }

    @Override
    public Long getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public String getLabelJson() {
        return labelJson;
    }

    public void setLabelJson(String labelJson) {
        this.labelJson = labelJson;
    }

    public String getLabelIdJson() {
        return labelIdJson;
    }

    public void setLabelIdJson(String labelIdJson) {
        this.labelIdJson = labelIdJson;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public Integer getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(Integer commentNumber) {
        this.commentNumber = commentNumber;
    }

    @Override
    public Long getUpdateDate() {
        return updateDate;
    }

    @Override
    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }
}
